package cn.jee.spring_base._java;

public class DBConn {
    public DBConn config(){
        DBConn config = new DBConn();
        config.setDriverClassName("org.hsqldb.jdbc.JDBCDriver");
        config.setJdbcUrl("jdbc:hsqldb:hsql://localhost/");
        config.setUsername("8080");
        config.setPassword("123456");
        config.setMaximumPoolSize(5);
        config.setMinimumIdle(2);
        return config;
    }
    public DBConn dataSource(){
        DBConn ds = new DBConn(config());
        return ds;
    }
}
